package io.xdag.block.model;

import java.io.Serializable;
import java.nio.ByteOrder;
import java.util.Arrays;

import io.xdag.constant.XdagConstant;
import io.xdag.io.Struct;

public class XdagField extends Struct implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

//	private long transportHeader;
//	private long type;
//	private long time;
//	private long[] xdagHashlowT = new long[XdagConstant.XDAG_HASHLOW_T_SIZE];
//	private long amount ;
//	private long endTime;

	public Unsigned64[] data = array(new Unsigned64[XdagConstant.XDAG_HASH_T_SIZE]);


	
	
	@Override
	public boolean isPacked() {
		return true;//对齐问题
	}
	
	@Override
	public ByteOrder byteOrder() {
		return ByteOrder.LITTLE_ENDIAN;
	}

	public Unsigned64[] getData() {
		return data;
	}

	public void setData(Unsigned64[] data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "XdagField [data=" + Arrays.toString(data) + "]";
	}
	
	
}
